<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改工件生产数据')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-piece-edit" th:object="${productAnalysisPiece}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">工件编号：</label>
                <div class="col-sm-8">
                    <input name="pieceNum" th:field="*{pieceNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊接次数：</label>
                <div class="col-sm-8">
                    <input name="weldingCount" th:field="*{weldingCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">加工时间：</label>
                <div class="col-sm-8">
                    <input name="machineTime" th:field="*{machineTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开机时间：</label>
                <div class="col-sm-8">
                    <input name="startTime" th:field="*{startTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作效率：</label>
                <div class="col-sm-8">
                    <input name="workRate" th:field="*{workRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊丝消耗(KG)：</label>
                <div class="col-sm-8">
                    <input name="weldingUse" th:field="*{weldingUse}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电能消耗(KWH)：</label>
                <div class="col-sm-8">
                    <input name="electUse" th:field="*{electUse}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">气体消耗(L)：</label>
                <div class="col-sm-8">
                    <input name="gasUse" th:field="*{gasUse}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "analysis/piece";
        $("#form-piece-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-piece-edit').serialize());
            }
        }
    </script>
</body>
</html>